<%@page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>  
  <title>消息</title>
  <jsp:include page="/common/layout_head.jsp"></jsp:include>
</head>
<body>
<form class="form-horizontal" action="${contextPath}/msg/notify" id="form">
	消息内容：
	<textarea rows="3" cols="50" name="msg"></textarea>
	<input type="button" onclick="sub()" value="发送">
</form>
<script type="text/javascript">
function sub(){
		$.ajax({
			type : "POST",
			data : $("#form").serialize(),
			url : $("#form").attr("action"),
			dataType : 'json',
			success:function(data) {
				alert(data.info);
			}
		});
}
	</script>

</body>
</html>
